/********************************************************************
 *  (fill this)
********************************************************************/

// `include "cnt24.v"
// `include "cnt60.v"

module alarmTop (
    input   wire        clk     ,
    input   wire        rstn    ,
    
    input   wire        set_alarm,
    input   wire        set_hour,
    input   wire        set_min ,

    output  wire [7:0]  hour    ,
    output  wire [7:0]  min     ,
    output  wire [7:0]  sec             // always :00
);

assign sec = 8'h00;

alarmCnt24 hour_inst (
    .rstn       (       rstn            ),
    .clk        (       clk             ),
    .set_alarm  (       set_alarm       ),
    .set        (       set_hour        ),

    .upper      (       hour[7:4]       ),
    .low        (       hour[3:0]       ) 
);

alarmCnt60 minute_inst (
    .rstn       (       rstn            ),
    .clk        (       clk             ),
    .set_alarm  (       set_alarm       ),
    .set        (       set_min         ),
    .upper      (       min[7:4]        ),
    .low        (       min[3:0]        )
);
    
endmodule
